package cn.linran.user.mapper;

import cn.linran.user.domain.User;
import cn.linran.basic.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author linran
 * @since 2022-07-30
 */
public interface UserMapper extends BaseMapper<User> {
    /**
     * 通过电话查询User
     * @param phone
     * @return 放回User
     */
    User findByPhone(String phone);

    /**
     * 通过logininfoId查找user
     * @param id
     * @return
     */
    User loadByLogininfoId(Long id);
}
